package com.chendx.test;

import com.chendx.store.seckill.SeckillApplication;
import com.chendx.store.seckill.service.SeckillOrderService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * Created by chendx on 2022/4/24.
 */
@SpringBootTest(classes = SeckillApplication.class)
@RunWith(SpringRunner.class)
public class Demo {

    @Autowired
    private SeckillOrderService seckillOrderService;

    @Test
    public void test(){
        seckillOrderService.close("zhangsan");
    }
}
